<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册 - 花礼相伴</title>
    <!-- Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <!-- FontAwesome 图标库 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background-color: #f8f8f8;
        }
    </style>
</head>
<body class="bg-gray-100">
    <!-- 主体内容 -->
    <div class="min-h-screen flex flex-col">
        <!-- 导航栏 -->
        <header class="bg-white p-4 border-b border-gray-200 shadow-sm">
            <div class="container mx-auto flex items-center justify-between">
                <a href="home.html" class="text-2xl font-bold text-rose-500 flex items-center">
                    <i class="fas fa-flower text-rose-500 mr-2"></i>
                    花礼相伴
                </a>
                <nav class="hidden md:flex space-x-6">
                    <a href="home.html" class="text-gray-600 hover:text-rose-500">首页</a>
                    <a href="categories.html" class="text-gray-600 hover:text-rose-500">分类</a>
                    <a href="cart.html" class="text-gray-600 hover:text-rose-500">购物车</a>
                </nav>
                <div class="flex items-center space-x-4">
                    <a href="register.html" class="text-white bg-rose-500 px-4 py-2 rounded-lg hover:bg-rose-600 transition duration-300">注册</a>
                    <a href="login.html" class="text-gray-600 hover:text-rose-500 hidden md:block">登录</a>
                </div>
            </div>
        </header>
        
        <!-- 移动端返回按钮 -->
        <div class="md:hidden bg-white p-4 flex items-center border-b border-gray-100">
            <a href="login.html" class="text-rose-500">
                <i class="fas fa-chevron-left"></i>
                <span class="ml-1">返回</span>
            </a>
            <h1 class="text-lg font-semibold mx-auto pr-4">注册新账号</h1>
        </div>

        <!-- 注册表单 -->
        <main class="flex-1 p-6 bg-gray-50">
            <h2 class="text-2xl md:text-3xl font-bold text-center mb-8 hidden md:block">注册新账号</h2>
            <div class="w-full max-w-md md:max-w-lg mx-auto">
                <div class="bg-white rounded-lg shadow-md p-6 md:p-8 mb-6">
                    <form>
                        <div class="mb-4">
                            <label for="username" class="block text-sm font-medium text-gray-700 mb-1">用户名</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="far fa-user text-gray-400"></i>
                                </div>
                                <input type="text" id="username" name="username" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请设置用户名" required>
                            </div>
                            <p class="mt-1 text-xs text-gray-500">用户名长度为4-20个字符，支持中英文、数字</p>
                        </div>

                        <div class="mb-4">
                            <label for="password" class="block text-sm font-medium text-gray-700 mb-1">密码</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="fas fa-lock text-gray-400"></i>
                                </div>
                                <input type="password" id="password" name="password" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请设置密码" required>
                            </div>
                            <p class="mt-1 text-xs text-gray-500">密码长度8-20个字符，建议包含字母、数字和符号</p>
                        </div>

                        <div class="mb-6">
                            <label for="confirm_password" class="block text-sm font-medium text-gray-700 mb-1">确认密码</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="fas fa-lock text-gray-400"></i>
                                </div>
                                <input type="password" id="confirm_password" name="confirm_password" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请再次输入密码" required>
                            </div>
                        </div>

                        <div class="mb-6">
                            <label for="mobile" class="block text-sm font-medium text-gray-700 mb-1">手机号码</label>
                            <div class="relative">
                                <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                    <i class="fas fa-mobile-alt text-gray-400"></i>
                                </div>
                                <input type="tel" id="mobile" name="mobile" 
                                    class="block w-full pl-10 pr-3 py-3 border border-gray-300 rounded-lg focus:ring-rose-500 focus:border-rose-500" 
                                    placeholder="请输入手机号码" required>
                            </div>
                        </div>

                        <div class="flex items-center mb-6">
                            <input id="terms" type="checkbox" class="h-4 w-4 text-rose-500 border-gray-300 rounded focus:ring-rose-500">
                            <label for="terms" class="ml-2 block text-sm text-gray-700">
                                我已阅读并同意<a href="#" class="text-rose-500">《用户服务协议》</a>和<a href="#" class="text-rose-500">《隐私政策》</a>
                            </label>
                        </div>

                        <button type="submit" 
                            class="w-full bg-rose-500 hover:bg-rose-600 text-white py-3 rounded-lg font-medium transition duration-300 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-rose-500">
                            立即注册
                        </button>
                    </form>
                </div>

                <div class="text-center">
                    <p class="text-gray-600">已有账号? <a href="login.html" class="text-rose-500 font-medium">立即登录</a></p>
                </div>
            </div>
        </main>
        
        <!-- 页脚 -->
        <footer class="bg-white border-t border-gray-200 py-6 mt-auto">
            <div class="container mx-auto px-4">
                <div class="flex flex-col md:flex-row justify-between items-center">
                    <div class="mb-4 md:mb-0">
                        <p class="text-gray-600">&copy; 2023 花礼相伴鲜花配送网站. 所有权利保留.</p>
                    </div>
                    <div class="flex space-x-4">
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fab fa-weixin text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fab fa-weibo text-xl"></i>
                        </a>
                        <a href="#" class="text-gray-500 hover:text-rose-500">
                            <i class="fas fa-envelope text-xl"></i>
                        </a>
                    </div>
                </div>
            </div>
        </footer>
    </div>
</body>
</html>